<?php 


$title = '产品详情';

$css = 'pro_details';

$tpid =4;

/********************************************************二级菜单************************************************/


	//header 当前状态效果
	$hid =isset($_GET['hid'])?$_GET['hid']:$tpid;
	//当前页类信息
	
	$curcate = dbselOne($con,'category','*',$tpid);

	//二级类信息
	$secondary = dbselect($con,'category','*',"pid=$tpid");
	
	
	//二级菜单当前状态效果
	$sid = isset($_GET['sid'])?$_GET['sid']:$secondary[0]['id'];

	//当前二级类信息

	$cursec = dbselOne($con,'category','*',$sid);	

	//产品详情查询

	$id = $_GET['id'];


	$pro_detail = dbselOne($con,'products','*',$id);


	//banner图查询
	$banner = dbselect($con,'banner','*',"cate_id='{$hid}' and status = 1",'create_time desc','1');


	//产品详情查询
	$pro_message = dbselect($con,'products,pro_message','pro_message.size,pro_message.merit,pro_message.ingredient,pro_message.filler','pro_message.pro_id = products.id');

	$size = json_decode($pro_message[0]['size']);



require("application/home/views/public/header.html");

include("application/".M."/views/".C."/".V.".html");

require("application/home/views/public/footer.html");


?>